home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / strings / ctype < prev    next >
Encoding:
Text File  |  1992-12-17  |  3.0 KB  |  75 lines

  1.  
  2.  
  3.           ctype class string
  4.                ctype determines whether all characters in string are
  5.                of the specified class.  It returns 1 if they are all
  6.                of class, and 0 if they are not, or if the string is
  7.                empty.  This command also provides another method
  8.                (besides format and scan) of converting between an
  9.                ASCII character and its numeric value.  The following
  10.                ctype commands are available:
  11.  
  12.                ctype alnum string
  13.                     Tests that all characters are alphabetic or
  14.                     numeric characters as defined by the character
  15.                     set.
  16.  
  17.                ctype alpha string
  18.                     Tests that all characters are alphabetic
  19.                     characters as defined by the character set.
  20.  
  21.                ctype ascii string
  22.                     Tests that all characters are an ASCII character
  23.                     (a non-negative number less than 0200).
  24.  
  25.                ctype char number
  26.                     Converts the numeric value, string, to an ASCII
  27.                     character.  Number must be in the range 0 through
  28.                     255.
  29.  
  30.                ctype cntrl string
  31.                     Tests that all characters are ``control
  32.                     characters'' as defined by the character set.
  33.  
  34.                ctype digit string
  35.                     Tests that all characters are valid decimal
  36.                     digits, i.e. 0 through 9.
  37.  
  38.                ctype graph string
  39.                     Tests that all characters within are any character
  40.                     for which ctype print is true, except for space
  41.                     characters.
  42.  
  43.                ctype lower string
  44.                     Tests that all characters are lowercase letters as
  45.                     defined by the character set.
  46.  
  47.                ctype ord character
  48.                     Convert a character into its decimal numeric
  49.                     value.  The string must be one character long.
  50.  
  51.                ctype space string
  52.                     Tests that all characters are either a space,
  53.                     horizontal-tab, carriage return, newline,
  54.                     vertical-tab, or form-feed.
  55.  
  56.                ctype print string
  57.                     Tests that all characters are a space or any
  58.                     character for which ctype alnum or ctype punct is
  59.                     true or other ``printing character'' as defined by
  60.                     the character set.
  61.  
  62.                ctype punct string
  63.                     Tests that all characters are made up of any of
  64.                     the characters other than the ones for which
  65.                     alnum, cntrl, or space is true.
  66.  
  67.                ctype upper string
  68.                     Tests that all characters are uppercase letters as
  69.                     defined by the character set.
  70.  
  71.                ctype xdigit string
  72.                     Tests that all characters are valid hexadecimal
  73.                     digits, that is 0 through 9, a through f or A
  74.                     through F.
  75.